@number: 20;
html {
  font-size: 1200px / @number;
}
// * {
//   padding: 0;
//   margin: 0;
// }

// 确定版心

.w {
  width: 1200px;
  margin: 0 auto;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
}
img {
  vertical-align: bottom;
}
p {
  color: #545454;
  line-height: 2.5rem;
}
body {
  position: relative;
  top: 0;
  left: 0;
  box-sizing: border-box;
  min-width: 600px;
  max-width: 1800px;
  margin: 0;
  padding: 0;
  margin: 0 auto;
  font-family: "KaiGenGothicSC-Light";
}

// 引入思源字体

@font-face {
  font-family: "KaiGenGothicSC-Light";
  src: url("../font/join/KaiGenGothicSC-Light.eot");
  src: url("../font/join/KaiGenGothicSC-Light.eot?#font-spider")
      format("embedded-opentype"),
    url("../font/join/KaiGenGothicSC-Light.woff") format("woff"),
    url("../font/join/KaiGenGothicSC-Light.ttf") format("truetype"),
    url("../font/join/KaiGenGothicSC-Light.svg") format("svg");
  font-weight: normal;
  font-style: normal;
}

// 添加下划线动画

@keyframes line {
  0% {
    width: 0.25rem;
    background-color: #dadada;
  }
  100% {
    width: 15rem;
    background-color: #dadada;
  }
}

// 调用动画

.key {
  height: 0.5rem;
  border-radius: 0.2rem;
  animation: line 4s ease 0s infinite alternate backwards;
}

// 添加小球跳动动画

@keyframes jump {
  10% {
    top: 40rem;
    left: 66rem;
  }
  20% {
    top: 49rem;
    left: 52rem;
  }
  30% {
    top: 60rem;
    left: 49rem;
  }
  40% {
    top: 68rem;
    left: 53rem;
  }
  50% {
    top: 75rem;
    left: 81rem;
  }
  60% {
    top: 81rem;
    left: 90rem;
  }
  70% {
    top: 96rem;
    left: 81rem;
  }
  80% {
    top: 105rem;
    left: 70rem;
  }
  90% {
    top: 120rem;
    left: 55rem;
  }
  100% {
    top: 134rem;
    left: 60rem;
  }
}

// 调用动画

.ball1 {
  position: absolute;
  z-index: 1;
  top: 32.5rem;
  left: 54.5rem;
  width: 2rem;
  height: 2rem;
  background-color: #0f9cf5;
  border-radius: 50%;
  animation: jump 10s linear 1s infinite normal backwards;

  // 增加一点互动效果，抓住球了它就会停

  &:hover {
    animation-play-state: paused;
  }
}
.ball2 {
  position: absolute;
  z-index: 1;
  top: 134rem;
  left: 17.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #ffd155;
}

// 三个小圆点

.round {
  display: flex;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 7rem;
  height: 7rem;
  justify-content: space-around;
  .dot {
    flex: 1;
    height: 0.5rem;
    width: 0.5rem;
    margin: 0.5rem;
    border: 0.3rem solid #129cf7;
    border-radius: 50%;
    &:nth-child(2) {
      border-color: #ffd155;
    }
    &:nth-child(3) {
      background-color: #129cf7;
    }
  }
}

// 头部模块开始啦~

.header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 50%;

  //   固定的盒子要有宽度,margin对其没用

  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 100%;
  height: 4.8rem;
  border: 2px solid #f1f1f1;
  background-color: #fff;
  box-shadow: 0.01rem 0.01rem 0.5rem #f1f1f1;
  .header-bd {
    display: flex;
    width: 75rem;
    .logo {
      flex: 4;
      img {
        // 图片垂直居中
        vertical-align: middle;
        height: 4rem;
        &:nth-child(1) {
          height: 3.5rem;
        }
        &:nth-child(2) {
          height: 4rem;
          margin-left: 1.25rem;
        }
      }
    }
  }
  .nav {
    float: right;
    flex: 10;
    ul {
      li {
        float: left;
        span {
          display: inline-block;
          height: 100%;
        }
        &:hover {
          // 用个span将文字给包起来，才能让下边框和字体长度一样长
          span {
            // 把盒子改为border-box，让下划线在内显示，不向外突出
            box-sizing: border-box;
            border-bottom: 0.3rem solid #ffd155;
          }
        }
        a {
          display: block;
          padding: 0 2.58rem;
          height: 4.8rem;
          line-height: 4.8rem;
          font-size: 1.5rem;
          color: #737373;
        }
        &:nth-child(6) {
          padding-right: 0;
        }
      }
    }
  }
}

// 焦点图

.index {
  position: relative;
  top: 0;
  left: 0;
  height: 56.25rem;
  margin-top: 4.8rem;
  background-color: #f8f8f8;
  // 同心圆
  .ring {
    .ring1 {
      position: absolute;
      top: 5rem;
      left: 18.6rem;
      width: 3rem;
      height: 3rem;
      border-radius: 50%;
      border: 15px solid #ffd255;
    }
  }
  .index-bd {
    position: relative;
    top: 0;
    left: 0;
    width: 75rem;
    border-top: 0.125rem solid #f1f1f1;
    .font {
      position: absolute;
      top: 8.5rem;
      left: 2.875rem;
      transform: scale(1.2, 1.5);
      z-index: 2;
      font-size: 6.25rem;
      font-weight: 700;
    }
    .team-A {
      position: absolute;
      top: 29.25rem;
      left: 0;
      z-index: 2;
      font-size: 4.5rem;
      font-weight: 600;
      letter-spacing: 5px;
    }
    div[class^="line"] {
      position: relative;
      width: 22rem;
      height: 2rem;
      border-radius: 0.5rem;
      p {
        display: inline-block;
        position: absolute;
        top: -3rem;
        left: 3.625rem;
        font-size: 1.56rem;
        font-weight: 540;
        color: #f9f9f9;
        text-shadow: 3px 1px 1px #b0b0b0;
        transform: scale(1.2, 1.5);
      }
    }
    .line-top {
      position: absolute;
      top: 38.25rem;
      left: 0;
      background-color: #737373;
    }
    .line-bottom {
      position: absolute;
      top: 40.5rem;
      left: 0;
      // 上面权重占太高，只能用important来提高权重了
      width: 17.05rem !important;
      background-color: #737373;
      p {
        left: 3rem !important;
      }
    }
    img {
      position: absolute;
      top: 6.25rem;
      right: 0;
      z-index: 2;
      transform: scale(1, 16 / 9);
    }
  }
  .round {
    right: 19rem;
  }
}

// 团队风采

.team {
  .team-bd {
    height: 56.25rem;
    h1 {
      position: relative;
      top: 0;
      left: 0;
      font-size: 3rem;
      text-align: center;
      z-index: 2;
    }
    .team-content {
      font-size: 1.5rem;
      text-align: center;
      // 引入视频标签
      video {
        position: relative;
        top: 0;
        left: 0;
        z-index: 2;
        width: 50rem;
        height: 28.125rem;
        // 去掉边框
        outline: none;
      }
      p {
        position: relative;
        top: 0;
        left: 0;
        z-index: 2;
        span {
          position: relative;
          top: 0;
          left: 0;
          z-index: 2;
          font-weight: 700;
          color: #129cf7;
        }
      }
    }
  }
}

// 关于我们

.about {
  .about-bd {
    position: relative;
    top: 0;
    left: 0;
    h1 {
      font-size: 3rem;
    }
    .about-content {
      font-size: 1.5rem;
      p {
        position: relative;
        top: 0;
        left: 0;
        z-index: 2;
        padding: 0.25rem 0;
        span {
          position: relative;
          top: 0;
          left: 0;
          z-index: 2;
          font-weight: 700;
          color: #171717;
        }
      }
      img {
        position: relative;
        top: 0;
        left: 0;
        z-index: 2;
        transform: scale(1, 16 / 9);
      }
    }
    // 改变排列方向
    .round {
      flex-direction: column;
    }
  }
}

// 团队荣誉

.box {
  height: 50rem;
  padding-top: 3.5rem;
  margin-top: 3rem;
  background: url(img/teamHonorbg.png) no-repeat top center;
  img {
    width: 100%;
    transform: scale(1, 3 / 4);
  }
  .honor {
    position: relative;
    top: 0;
    left: 0;
    padding-top: 2rem;
    height: 45rem;
    background-color: rgba(251, 251, 251, 0.8);
    border-radius: 0.5rem;
    &:hover {
      box-shadow: 0.2rem 1.5rem 4.5rem -1rem #737373;
    }
    .honor-text {
      padding: 1.25rem;
      font-size: 1.5rem;
      p {
        line-height: 1.2rem;
        color: #4a4a4a;
      }
      span {
        color: #129cf7;
      }
    }
    .honor-content {
      padding: 1.25rem;
      margin-top: -1.375rem;
      text-align: center;
      li {
        float: left;
        width: 17.0625rem;
        height: 17.75rem;
        border: 2px solid #f1f1f1;
        margin-left: 0.4rem;
        margin-right: 0.35rem;
        &:nth-child(4) {
          margin-right: 0;
        }
        &:hover {
          display: block;
          border: 2px solid #129cf7;
          background-color: #129cf7;
          color: #fff;
        }
      }
      ul {
        li {
          h4 {
            padding: 0 2rem 0 2rem;
            height: 1.8rem;
            line-height: 1.3rem;
          }
        }
      }
      input {
        margin: 1.4rem 0.3rem;
      }
    }
    .round {
      top: 5rem;
      right: 3.5rem;
    }
  }
}

// 项目资源

// 排版和上面差不多，用一些属性来覆盖就好了

.resource {
  margin-top: 0;
  line-height: 2rem;
  background: url(img/projectSourcebg.png) no-repeat top center;
  .item {
    background-color: rgba(251, 251, 251, 0.9);
    .item-content {
      margin-top: 1.5rem;
      ul {
        li {
          h4 {
            padding: 0;
            text-align: center;
            line-height: 1.8rem;
          }
        }
      }
      input {
        margin: 2.5rem 0.3rem;
      }
    }
  }
}

// 加入我们

.join {
  position: relative;
  top: 0;
  left: 0;
  font-size: 1.65rem;
  height: 230rem;
  .join-us {
    position: relative;
    top: 0;
    left: 0;
    .join-us-text {
      margin-bottom: 1.875rem;
      .key {
        margin-bottom: 3.5rem;
      }
    }
    .group1 {
      position: absolute;
      top: 10rem;
      right: 0.8125rem;
      width: 35rem;
      &:hover {
        box-shadow: 0.3125rem 0.3125rem 2.625rem #737373;
      }
      .introduce1 {
        padding: 1.3125rem;
        background-color: #fff;
        border: 1px solid #f1f1f1;
        border-top: 0;
        h2 {
          padding-left: 0.6rem;
          border-left: 0.5rem solid #0f9cf5;
        }
        p {
          color: #404040;
        }
      }
    }

    // 还是一样，每块布局都差不多，用样式来覆盖就好了

    .left {
      left: 0;
    }
    .network {
      top: 30rem;
    }
    .web {
      top: 90rem;
    }
    .machine {
      top: 110rem;
    }
    .circuitry {
      top: 165rem;
    }
    .manage {
      top: 184rem;
    }
  }
  .join-bd {
    height: 65rem;
    background-color: #f1f1f1;
    .board {
      position: absolute;
      top: 17.5rem;
      right: 0;
      width: 12rem;
      height: 80rem;
      background-color: #fff;
    }
    .join-us-next-text {
      padding-top: 1.2rem;
    }
  }
  .join-bd-next {
    position: relative;
    top: 0;
    left: 0;
    z-index: -1;
    height: 60rem;
    margin-top: 93rem;

    // 背景不是全灰的，用另一个盒子来盖住他

    .board {
      position: absolute;
      top: 0;
      left: 0;
      width: 12rem;
      height: 100%;
      background-color: #fff;
    }
  }
  .round {
    bottom: -17.1875rem;
    right: 20rem;
    height: 0;
  }
}

// 底部

.footer {
  margin-top: 35rem;
  text-align: center;
  font-size: 2rem;
  p {
    &:nth-child(3) {
      color: #0f9cf5;
    }
  }
  .footer-pic {
    display: flex;
    justify-content: center;
    .qrCode {
      padding: 0.3rem;
      margin: 2.5rem 1.25rem 11.25rem 0;
      border: 3px solid #343436;
    }
    .Alogo {
      margin: 2.5rem 0 11.25rem 1.25rem;
    }
  }
}

// 结尾

.down {
  height: 11.25rem;
  text-align: center;
  background: url(img/blackDown.png) no-repeat top center;
  span {
    line-height: 11.25rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 2.25rem;
    text-align: center;
    color: #acacac;

    // 制作特殊字体符号

    div {
      display: inline-block;
      position: relative;
      top: 0;
      left: 0;
      width: 1.625rem;
      height: 1.625rem;
      vertical-align: middle;
      border-radius: 50%;
      border: 0.2rem solid #acacac;
      span {
        position: absolute;
        top: -5.1rem;
        left: 0.15rem;
        font-size: 2.15rem;
      }
    }
  }
}

// Ending
